//
//  CommitSuccessVC.m
//  ReceiptDelivery
//
//  Created by 吕晶 on 2020/6/30.
//  Copyright © 2020 吕晶. All rights reserved.
//

#import "CommitSuccessVC.h"

@interface CommitSuccessVC ()

@end

@implementation CommitSuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"云车主注册";
    self.view.backgroundColor = HexColor(0xffffff);
    [self configUI];
}

- (void)configUI {
    UIImageView *iconImgView = [[UIImageView alloc] initWithFrame:CGRectMake((ScreenW - 60) * 0.5, 90, 60, 60)];
    [iconImgView setImage:[UIImage imageNamed:@"icon_checklistv"]];
    [self.view addSubview:iconImgView];
    
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, iconImgView.nim_bottom + 30, ScreenW, 10)];
    titleLab.textColor = HexColor(0x2B2C44);
    titleLab.font = BoldFontOfSize(30);
    titleLab.textAlignment = NSTextAlignmentCenter;
    titleLab.text = @"提交成功";
    [self.view addSubview:titleLab];
    [titleLab sizeToFit];
    titleLab.nim_centerX = ScreenW * 0.5;
    
//    UILabel *NOLab = [[UILabel alloc] initWithFrame:CGRectMake(0, titleLab.nim_bottom + 22, ScreenW, 19)];
//    NOLab.text = [NSString stringWithFormat:@"企业编号：%@",self.companyNO];
//    NOLab.textColor = HexColor(0x585974);
//    NOLab.font = BoldFontOfSize(18);
//    NOLab.textAlignment = NSTextAlignmentCenter;
//    [self.view addSubview:NOLab];
//
//    UILabel *descLab = [[UILabel alloc] initWithFrame:CGRectMake(40, titleLab.nim_bottom + 20, ScreenW - 80, 10)];
//    descLab.numberOfLines = 0;
//    descLab.textColor = HexColor(0x585974);
//    descLab.font = [UIFont systemFontOfSize:14];
//    descLab.text = @"平台审核完成后，会发送消息到您邮箱和手机上，请注意查收！";
//    [self.view addSubview:descLab];
//    [descLab sizeToFit];
    
    UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(40, titleLab.nim_bottom + 90, ScreenW - 80, 44)];
    btn.backgroundColor = Color_ThemeColor;
    btn.layer.masksToBounds = YES;
    btn.layer.cornerRadius = 6;
    [btn setTitle:@"返回登录" forState:0];
    [btn setTitleColor:HexColor(0xffffff) forState:0];
    btn.titleLabel.font = BoldFontOfSize(16);
    [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
}

- (void)btnClick {
    [User loginSuccessData:self.responseObject];
//    [self.rt_navigationController popToRootViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
